import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import store from '@/store/index'
import VueCodeMirror from 'vue-codemirror';
// import 'codemirror/lib/codemirror.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import echarts from "@/config/plugins/echarts";

import './assets/iconfont/iconfont.css'

const app = createApp(App)
// 注册echarts插件
app.config.globalProperties.echarts = echarts;
app.provide("echarts", echarts);

app
    .use(router)
    .use(store)
    .use(ElementPlus,{
        locale: zhCn,
    })
    .use(VueCodeMirror);
app.mount('#app')



